how to add matplotlib graphs in python